package com.android.stockme.backend.fetcher;

import com.android.stockme.backend.configuration.IConfigurationManager;

public class DataFetcherFactory implements IDataFetcherFactory {


	
	public IDataFetcher createFetcher(IConfigurationManager configurationManager) 
	{

		String vendor = configurationManager.getFinanceWebsite();
		if (vendor.equals("Google Finance Web Site"))
			return (new GoogleDataFetcher(configurationManager));
		else
		if (vendor.equals("Yahoo Finance Web Site"))
			return (new YahooDataFetcher(configurationManager));
		
		return null;
			
	}//createFetcher

}
